package com.zhrenjie04.alex.manager.dao;

import java.util.LinkedList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.zhrenjie04.alex.core.GenericDao;
import com.zhrenjie04.alex.core.Job;
import com.zhrenjie04.alex.core.MenuItem;
import com.zhrenjie04.alex.core.User;
/**
 * @author 张人杰
 */
@Repository("userDao")
public interface UserDao extends GenericDao<User>{
	/**
	 * 查询用户权限代码
	 * @param job
	 * @return
	 */
	LinkedList<String> queryUserPrivilegeCodes(Job job);
	/**
	 * 查询用户角色ids用于用户权限判断
	 * @param job
	 * @return
	 */
	LinkedList<String> queryUserRoleIds(Job job);
	/**
	 * 更新用户帐号锁定状态
	 * @param user
	 * @return
	 */
	Long updateLocked(User user);
	/**
	 * 查询用户菜单
	 * @param job
	 * @return
	 */
	LinkedList<MenuItem> queryUserMenuLinks(Job job);
}
